Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

why aasm_initial_state :initial => :pending in Authorization::AasmRoles ?

#37

Authorization::AasmRoles has the following on line 13 (as of sha 61cd9b3) :

aasm_initial_state :initial => :pending

Am I right saying this line is useless, and wrong ?

It looks a lot like the acts_as_state_machine routine :

acts_as_state_machine :initial => :pending

Anyhow, if this line has a use I'd have missed, it's not covered by the rpec tests. Comment the line, run the specs, and see it all pass.

Reported by Julien Palmas · January 30th, 2009 @ 08:19 AM

State: new
Milestone: none
Assigned to: mrflip mrflip

Activity

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.